package com.yilin.medical.views;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Gravity;
import android.view.Window;
import android.view.WindowManager.LayoutParams;
import android.widget.TextView;

import com.yilin.medical.R;

public class ljeDialog extends Dialog {

	private String sd, camera, cancle;
	private TextView mtextTextViewSd;
	private TextView mTextViewCamera;
	private TextView mTextViewCancle;
	private Context context;
	private android.view.View.OnClickListener ListenerCamera;
	private android.view.View.OnClickListener ListenerCancle;
	private android.view.View.OnClickListener ListenerSd;

	public String getSd() {
		return sd;
	}

	public void setSd(String sd) {
		this.sd = sd;
	}

	public String getCamera() {
		return camera;
	}

	public void setCamera(String camera) {
		this.camera = camera;
	}

	public String getCancle() {
		return cancle;
	}

	public void setCancle(String cancle) {
		this.cancle = cancle;
	}

	public void setListenerSd(android.view.View.OnClickListener listenerSd) {
		ListenerSd = listenerSd;
	}

	public void setListenerCamera(
			android.view.View.OnClickListener listenerCamera) {
		ListenerCamera = listenerCamera;
	}

	public void setListenerCancle(
			android.view.View.OnClickListener listenerCancle) {
		ListenerCancle = listenerCancle;
	}


	public ljeDialog(Context context) {
		super(context, R.style.Dialog_Fullscreen);
		this.context = context;
		Window window = this.getWindow();
		window.setGravity(Gravity.BOTTOM);
		window.setWindowAnimations(R.style.mystyle);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ljedialog);
		mtextTextViewSd = (TextView) findViewById(R.id.tv_fromSD);
		mTextViewCamera = (TextView) findViewById(R.id.tv_Cameara);
		mTextViewCancle = (TextView) findViewById(R.id.tv_cancle);

		mtextTextViewSd.setOnClickListener(ListenerSd);
		mTextViewCamera.setOnClickListener(ListenerCamera);
		mTextViewCancle.setOnClickListener(ListenerCancle);
		this.getWindow().setLayout(LayoutParams.FILL_PARENT,
				LayoutParams.WRAP_CONTENT);
		mtextTextViewSd.setText(sd);
		mTextViewCamera.setText(camera);
		mTextViewCancle.setText(cancle);
	}

}
